//
//  KBaseRequest.h
//  Peanut
//
//  Created by Jim huang on 2018/3/12.
//  Copyright © 2018年 Jim_Peanut. All rights reserved.
//

#import <YTKNetwork/YTKNetwork.h>
#import "KBaseModel.h"

@interface KBaseRequest : YTKRequest

@property (nonatomic,strong) NSMutableDictionary * paramsDic;
//特殊的BaseUrl
@property (nonatomic ,strong) NSString *requestBaseUrl;
///post请求
- (instancetype)initPOSTWithRequestUrl:(NSString *)requestUrl;
//get请求
- (instancetype)initGETWithRequestUrl:(NSString *)requestUrl;
//自选请求类型
-(instancetype)initWithMethod:(YTKRequestMethod)requestMethod requestUrl:(NSString *)requestUrl;


/**
 开始请求
 
 @param successBlock 成功回调
 @param failureBlock 失败回调
 */
- (void)newStartRequestWithCompletion:(void(^)(KBaseModel *baseModel))successBlock failure:(void(^)(KBaseModel *errorModel))failureBlock;


@end
